package com.osi.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * @author lixin
 */
@Data
@TableName("course")
@NoArgsConstructor
@AllArgsConstructor
public class Course implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer courseId;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 任课老师
     */
    private String teacher;

    /**
     * 课程类型
     */
    private String type;

    /**
     * 课程学分
     */
    private Integer courseScore;

    /**
     * 总人数
     */
    private Integer totalCount;

    /**
     * 已选人数
     */
    private Integer selectCount;

    /**
     * 上课地址
     */
    private String address;

    /**
     * 状态（0不可用，1正常）
     */
    private String status;

    /**
     * 课程描述
     */
    private String description;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date createTime;

    private Date startTime;


    private Date endTime;


}
